Errore PostGres --> ERROR: invalid input syntax for type integer: "291 on 31-10-2017" LINE 6: WHERE "s"."species_code" = '291 on 31-10-2017' LIMIT 1 ^